package com.course.feign;

import com.api.entity.CourseComment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/*
    @ClassName CommentFeign
    @Description TODO
    @Date 2021/9/4、10:42
*/
@FeignClient(name = "edu-comment-boot")
public interface CommentFeign {

    @RequestMapping("/comment/getCourseCommentList/{courseId}/{pageNum}/{pageSize}")
    List<CourseComment> getAllComment(@PathVariable("courseId")Integer courseId,
                                      @PathVariable("pageNum")Integer pageNum,
                                      @PathVariable("pageSize")Integer pageSize);
}
